package cn.wx.scholar.core.entity.qo;

import java.util.Date;

public class YeeSightQ {

	private String institution; // 专家机构名字

	private String realName; // 专家名字

	private String keyword; // 关键字 ((机构) AND (专家名字))

	private Date endDate; // 2016-12-31 00:00:00", //结束时间

	private Date beginDate; // 2016-01-01 00:00:00", //开始时间

	private String countryNameZh; // 中国 ,国家名数组

	private String[] languageCode = {"en"};// ["zh"] 语言code数组，新增一个值，如果为 notcn 的话，就取非中文的内容

	private String order = "desc";// asc,指定排序字段

	private Integer pageNo = 1;// 获取第几页

	private Integer pageSize = 10;// 返回结果数

	private String queryString;// yes 支持富检索

	private String Translation;// no 不走机翻

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	
	public void initKeyword() {
		this.keyword = "((" + this.institution + ") AND " + this.realName + ")";
	}

	public String getInstitution() {
		return institution;
	}

	public void setInstitution(String institution) {
		this.institution = institution;
		this.keyword = "((" + institution + ") AND " + this.realName + ")";
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
		this.keyword = "((" + this.institution + ") AND " + realName + ")";
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public String getCountryNameZh() {
		return countryNameZh;
	}

	public void setCountryNameZh(String countryNameZh) {
		this.countryNameZh = countryNameZh;
	}

	public String[] getLanguageCode() {
		return languageCode;
	}

	public void setLanguageCode(String[] languageCode) {
		this.languageCode = languageCode;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public String getQueryString() {
		return queryString;
	}

	public void setQueryString(String queryString) {
		this.queryString = queryString;
	}

	public String getTranslation() {
		return Translation;
	}

	public void setTranslation(String translation) {
		Translation = translation;
	}

}
